//
//  DynamicContentView.h
//  WeCommunity
//
//  Created by mac on 2017/6/14.
//  Copyright © 2017年 lzy. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DynamicImageView.h"
#import "DynamicModel.h"



@protocol DynamicContentDelegate <NSObject>

@optional
-(void)isShowMoreContent:(BOOL)showMore sender:(UIButton *)sender;
-(void)processCommunityUrlLink:(NSString *)link;

@end


@interface DynamicContentView : UIView

@property (nonatomic,strong) YYLabel * contentLabel;

@property (nonatomic,strong) UIButton * moreButton;

@property (nonatomic,strong) DynamicModel * dynamicModel;

@property (nonatomic,strong) NSArray * dynamicImages;

@property (nonatomic,strong) DynamicImageView * dynamicImageView;

@property (nonatomic,assign) id<DynamicContentDelegate> delegate;



-(instancetype)init;

-(void)creatDynamicContentViewWithModel:(DynamicModel * )model;


@end
